def sqlalchemyDataBase(dbproconfig:dict):
    """
    数据库连接配置
    :return: 数据库连接字符
    """
    sqlalchemyDataBaseUrl = ""

    if dbproconfig["TYPE"]=="MYSQL":
        sqlalchemyDataBaseUrl = 'mysql+pymysql://'+dbproconfig['USER']+':'+dbproconfig['PASSWORD']+'@'+dbproconfig['HOST']+':'+str(dbproconfig['PORT'])+'/'+dbproconfig['NAME']
    else:
        sqlalchemyDataBaseUrl ='mssql+pyodbc://' + dbproconfig['USER'] + ':' + dbproconfig['PASSWORD'] + '@' + dbproconfig['HOST'] + ':' + str(dbproconfig['PORT']) + '/' + dbproconfig['NAME'] + '?driver=SQL Server'

    return sqlalchemyDataBaseUrl